<script>
  export default {
    onLaunch: function () {
      console.log('App Launch1')
      let ua = window.navigator.userAgent.toLowerCase();
      //判断是不是微信
      console.log(ua);
      if (ua.match(/MicroMessenger/i) == "micromessenger") {
        // 微信
        console.log("微信");
        uni.showToast({
          title: '微信微信',
          icon: 'none',
          duration: 2000
        });
      }
      //判断是不是支付宝
      if (ua.match(/AlipayClient/i) == "alipayclient") {
        //支付宝
        console.log("支付宝");
        uni.showToast({
          title: '支付宝',
          icon: 'none',
          duration: 2000
        });
      }
    },
    onShow: function () {
      console.log('App Show2')
    },
    onHide: function () {
      console.log('App Hide33')
    }
  }
</script>

<!-- <style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
</style> -->
<style>
  /*每个页面公共css */
</style>